<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue原理</title>
</head>
<body>
    <div id="app">
        <p>{{msg}}</p>
        <h4 o-text='age'></h4>
        <input type="text" o-model="msg" />
        <button @click="changeName">点击改变值</button>
        <div o-html="html"></div>
    </div>
</body>
<script src="./Complie.js"></script>
 <script src="./OVue.js"></script>
<script>
    const vue=new OVue({
        el:'#app',
        data:{
            msg:'hello',
            age:12,
            html:"<button>点击</button>"
        },
        methods: {
            changeName() {
            this.msg = "哈喽，Vue";
            this.age = 1;
          }
        },
    });
</script>
</html>
